/* ====== Variables & Reset ====== */
:root {
  --bg: #0f0f1e;
  --surface: #1a1a2e;
  --surface-light: #252538;
  --text: #f5f5f0;
  --text-muted: #b8b8aa;
  --gold: #d4af37;
  --gold-light: #f4d76b;
  --gold-dark: #9d7e2a;
  --burgundy: #6b1f3d;
  --deep-blue: #1e3a5f;
  --sacred-red: #8b2635;
  --liturgical-purple: #6b4fa0;
  --liturgical-white: #faf8f5;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --glow: 0 0 30px rgba(212, 175, 55, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* ====== Sacred Background ====== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle 600px at 20% 20%, rgba(212, 175, 55, 0.08), transparent),
    radial-gradient(circle 800px at 80% 60%, rgba(107, 79, 160, 0.06), transparent),
    radial-gradient(circle 400px at 50% 100%, rgba(139, 38, 53, 0.05), transparent);
  z-index: -2;
  animation: sacredGlow 25s ease-in-out infinite alternate;
}

@keyframes sacredGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* ====== Sacred Pattern Overlay ====== */
.sacred-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 50px, var(--gold) 50px, var(--gold) 51px),
    repeating-linear-gradient(-45deg, transparent, transparent 50px, var(--gold) 50px, var(--gold) 51px);
  pointer-events: none;
}

/* ====== Floating Particles (Sacred Dust) ====== */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: holyFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 15%; top: 25%; animation-delay: 0s; }
.particle:nth-child(2) { left: 75%; top: 45%; animation-delay: 3s; }
.particle:nth-child(3) { left: 35%; top: 65%; animation-delay: 6s; }
.particle:nth-child(4) { left: 85%; top: 15%; animation-delay: 9s; }
.particle:nth-child(5) { left: 55%; top: 55%; animation-delay: 12s; }

@keyframes holyFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  10%, 90% { opacity: 0.6; }
  50% { opacity: 1; transform: translateY(-100px) scale(1.5); }
}

/* ====== Glass Effect ====== */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ====== Navbar ====== */
.navbar {
  background: linear-gradient(180deg, rgba(15, 15, 30, 0.98), rgba(15, 15, 30, 0.95)) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--gold) !important;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  z-index: 1000;
}

.navbar-toggler {
  border: 2px solid var(--gold);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.3);
  outline: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  width: auto;
  height: auto;
}

.navbar-collapse {
  background: linear-gradient(180deg, rgba(15, 15, 30, 0.98), rgba(15, 15, 30, 0.95));
  backdrop-filter: blur(20px);
}

@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

.nav-link {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  color: var(--text) !important;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  padding: 0.8rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.btn-outline-light {
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  background: transparent;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ====== Hero Section ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
}

.hero::before {
  content: '☧';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40rem;
  color: var(--gold);
  opacity: 0.02;
  font-family: serif;
  z-index: -1;
  animation: rotate 120s linear infinite;
}

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.overtitle {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.accent {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  border: none;
  color: var(--bg);
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.3);
  color: var(--text);
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* ====== Liturgical Selector ====== */
.liturgical {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.liturgical-label {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.liturgical-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pill::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition);
}

.pill[aria-selected="true"]::after {
  border-color: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.pill-green { background: linear-gradient(135deg, #2d7a4f, #4a9d6f); color: #4a9d6f; }
.pill-purple { background: linear-gradient(135deg, #6b4fa0, #8b6fb8); color: #8b6fb8; }
.pill-red { background: linear-gradient(135deg, #8b2635, #b33649); color: #b33649; }
.pill-white { background: linear-gradient(135deg, #f5f5f5, #ffffff); color: #d4af37; }
.pill-gold { background: linear-gradient(135deg, #d4af37, #f4d76b); color: #d4af37; }

.pill:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px currentColor;
}

/* ====== Phone Mockup ====== */
.phone-wrap {
  display: flex;
  justify-content: flex-end;
  perspective: 1500px;
}

.phone {
  width: min(360px, 100%);
  aspect-ratio: 9/19;
  border-radius: 50px;
  background: linear-gradient(135deg, #1a1a2e, #252538);
  border: 4px solid rgba(212, 175, 55, 0.3);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(212, 175, 55, 0.1),
    inset 0 0 60px rgba(212, 175, 55, 0.05);
  position: relative;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 30px;
  background: #000;
  border-radius: 0 0 22px 22px;
  z-index: 10;
}

.screen {
  position: absolute;
  inset: 15px;
  border-radius: 40px;
  background: linear-gradient(180deg, #0f0f1e, #1a1a2e);
  padding: 50px 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent);
  pointer-events: none;
}

.screen-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 5;
}

.chi-rho {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 0 10px var(--gold));
}

.screen-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.screen-card:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.screen-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 600;
}

.screen-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.mini-btn {
  padding: 10px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  border: none;
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.mini-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.mini-btn.ghost {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
}

/* ====== Sections ====== */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ====== Features ====== */
.feature-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(37, 37, 56, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(37, 37, 56, 0.9), rgba(26, 26, 46, 0.7));
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.ic {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  filter: drop-shadow(0 0 15px currentColor);
}

.feature-card:nth-child(1) .ic { color: var(--gold); }
.feature-card:nth-child(2) .ic { color: var(--gold-light); }
.feature-card:nth-child(3) .ic { color: var(--liturgical-purple); }
.feature-card:nth-child(4) .ic { color: var(--sacred-red); }
.feature-card:nth-child(5) .ic { color: var(--deep-blue); }
.feature-card:nth-child(6) .ic { color: var(--gold); }
.feature-card:nth-child(7) .ic { color: var(--liturgical-purple); }
.feature-card:nth-child(8) .ic { color: var(--gold-light); }

.feature-card h5 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ====== Steps ====== */
.steps-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

#how .glass h6 {
  font-family: 'Cinzel', serif;
  color: var(--text);
  font-weight: 700;
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

#how .glass {
  transition: var(--transition);
}

#how .glass:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

/* ====== Mocks ====== */
.mock {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(37, 37, 56, 0.5));
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.mock:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(37, 37, 56, 0.6));
  transform: translateY(-5px);
}

.mock h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.mock p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ====== Quote ====== */
.quote {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
  position: relative;
}

.quote::before {
  content: '"';
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12rem;
  color: var(--gold);
  opacity: 0.08;
  font-family: 'Cinzel', serif;
  line-height: 1;
}

.quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  font-family: 'Crimson Text', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  color: var(--text);
  position: relative;
  z-index: 1;
  font-style: italic;
  line-height: 1.8;
}

.quote blockquote span {
  display: block;
  margin-top: 1.5rem;
  color: var(--gold);
  font-size: 0.85em;
  font-style: normal;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

/* ====== FAQ ====== */
details {
  margin: 1.5rem 0;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(37, 37, 56, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

details:hover {
  border-color: var(--gold);
}

details[open] {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(37, 37, 56, 0.6));
  border-color: var(--gold);
}

summary {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

summary::before {
  content: '☩';
  color: var(--gold);
  font-size: 1.3rem;
}

summary:hover {
  color: var(--gold);
}

details p {
  margin-top: 1.2rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.1rem;
}

/* ====== Form ====== */
.form-label {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.form-control {
  padding: 1rem;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(26, 26, 46, 0.8);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ====== Footer ====== */
.site-footer {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(20px);
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
}

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

.copy {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: 'Crimson Text', serif;
}

/* ====== Scroll to Top ====== */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--bg);
  border: none;
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  z-index: 99;
}

.to-top.visible {
  opacity: 1;
  transform: scale(1);
}

.to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

/* ====== Reveal Animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Liturgical Themes ====== */
:root[data-liturgical="green"] {
  --gold: #2d7a4f;
  --gold-light: #4a9d6f;
  --gold-dark: #1e5a3a;
}

:root[data-liturgical="purple"] {
  --gold: #6b4fa0;
  --gold-light: #8b6fb8;
  --gold-dark: #4d3770;
}

:root[data-liturgical="red"] {
  --gold: #8b2635;
  --gold-light: #b33649;
  --gold-dark: #6b1e2b;
}

:root[data-liturgical="white"] {
  --gold: #f5f5f5;
  --gold-light: #ffffff;
  --gold-dark: #d4d4d4;
}

:root[data-liturgical="gold"] {
  --gold: #d4af37;
  --gold-light: #f4d76b;
  --gold-dark: #9d7e2a;
}

/* ====== Responsive ====== */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .phone-wrap {
    justify-content: center;
    margin-top: 3rem;
  }

  .phone {
    width: min(340px, 90%);
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .feature-card {
    margin-bottom: 1rem;
  }

  .quote blockquote {
    font-size: 1.8rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 50px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.3;
  }

  .overtitle {
    font-size: 1rem;
  }

  .sub {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }

  .nav-link {
    text-align: center;
    padding: 0.8rem 0;
  }

  .navbar-nav {
    padding: 1rem 0;
    gap: 0 !important;
  }

  .navbar-collapse {
    margin-top: 0;
  }

  .liturgical {
    padding: 1.2rem;
  }

  .liturgical-pills {
    justify-content: center;
  }

  .pill {
    width: 45px;
    height: 45px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .feature-card {
    padding: 2rem;
    margin-bottom: 0;
  }

  .feature-card h5 {
    font-size: 1.2rem;
  }

  .ic {
    font-size: 2.5rem;
  }

  .steps-badge {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  #how .glass h6 {
    font-size: 1.1rem;
  }

  .mock {
    padding: 2.5rem 1.5rem;
  }

  .mock h4 {
    font-size: 1.3rem;
  }

  .quote blockquote {
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  details {
    padding: 1.5rem;
  }

  summary {
    font-size: 1.05rem;
  }

  .site-footer {
    padding: 2.5rem 0;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem !important;
    align-items: center;
  }

  .to-top {
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand svg {
    width: 28px;
    height: 28px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 90px 0 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .overtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .sub {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
  }

  .liturgical {
    padding: 1rem;
  }

  .liturgical-label {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .pill {
    width: 42px;
    height: 42px;
  }

  .phone {
    width: min(300px, 85%);
  }

  .screen {
    padding: 45px 15px 20px;
    gap: 14px;
  }

  .screen-top {
    font-size: 0.95rem;
  }

  .chi-rho {
    width: 26px;
    height: 26px;
  }

  .screen-card {
    padding: 16px;
  }

  .screen-card h3 {
    font-size: 0.9rem;
  }

  .screen-card p {
    font-size: 0.85rem;
  }

  .mini-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1.8rem 1.3rem;
  }

  .feature-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
  }

  .feature-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .ic {
    font-size: 2.3rem;
    margin-bottom: 1rem;
  }

  .steps-badge {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  #how .glass {
    padding: 1.5rem !important;
  }

  #how .glass h6 {
    font-size: 1.05rem;
    margin-top: 1rem;
  }

  .mock {
    padding: 2rem 1.2rem;
  }

  .mock h4 {
    font-size: 1.2rem;
  }

  .mock p {
    font-size: 1rem;
  }

  .quote {
    padding: 60px 0;
  }

  .quote::before {
    font-size: 8rem;
    top: 10px;
  }

  .quote blockquote {
    font-size: 1.3rem;
    padding: 1.2rem;
    line-height: 1.7;
  }

  .quote blockquote span {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  details {
    padding: 1.3rem;
    margin: 1rem 0;
  }

  summary {
    font-size: 1rem;
  }

  summary::before {
    font-size: 1.1rem;
  }

  details p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .form-label {
    font-size: 0.95rem;
  }

  .form-control {
    padding: 0.9rem;
    font-size: 1rem;
  }

  .site-footer {
    padding: 2rem 0;
  }

  .footer-brand {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.95rem;
  }

  .copy {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .to-top {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .phone {
    width: min(280px, 90%);
  }

  .pill {
    width: 38px;
    height: 38px;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .ic {
    font-size: 2rem;
  }
}

/* ====== Fix débordement horizontal sur mobile ====== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 575.98px) {
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
