:root{
  --bg:#ffffff;
  --surface:#f6f7f9;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#475569;
  --border:#e5e7eb;

  /* 🇺🇸 */
  --navy:#0a3161;
  --red:#b31942;

  --shadow: 0 10px 28px rgba(2,6,23,0.10);

  /* hero crop */
  --heroY: 35%;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color:var(--navy); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 980px;
  margin:0 auto;
  padding: 16px;
}

/* NAV */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 0 0 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.brand img{
  width: 80px;
  height: 80px;
  object-fit: contain;
  background:#fff;
  flex: 0 0 auto;
}

.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: nowrap;
  justify-content:flex-end;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:#fff;
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover{ background:#fafafa; }

.btn.primary{
  background: var(--red);
  color:#fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(179,25,66,0.18);
}
.btn.primary:hover{ filter: brightness(0.96); }

.btn.ghost{
  border-color: rgba(255,255,255,0.28);
  background: var(--navy);
  color: #fff;
}
.btn.ghost:hover{
  background: rgba(255,255,255,0.18);
}

.btn.full{ width:100%; padding: 14px 16px; font-size: 15px; }

/* pill */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,49,97,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

/* HERO */
/* HERO */
.hero{
  padding: 0;
  border-radius: 18px;
  overflow:hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  /* IMPORTANT: move image to ::after so we can filter it */
  background: none;

  height: 550px; /* one source of truth */
}

/* Background image layer (filtered) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("/assets/mobile-hero.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position: 50% var(--heroY);

  /* This is the money: darken + increase contrast slightly */
  filter: brightness(0.72) contrast(1.08) saturate(0.95);

  transform: scale(1.02); /* avoids edge artifacts on some devices */
  z-index: 0;
}

/* Overlay gradient layer (kept darker in the mid section) */
/* Overlay gradient layer (darken where text sits) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;

  /* Darker behind text, fades out toward the right/bottom */
  background:
    radial-gradient(
      700px 520px at 18% 26%,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.40) 45%,
      rgba(0,0,0,0.18) 70%,
      rgba(0,0,0,0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.10) 40%,
      rgba(0,0,0,0.35) 100%
    );
}


/* Stronger legibility */
h1 { text-shadow: 0 12px 34px rgba(0,0,0,0.45); }
.lead, .trust { text-shadow: 0 10px 28px rgba(0,0,0,0.40); }

.hero-inner{
  position: relative;
  padding: 22px;
  height: 100%;
  display:flex;
  z-index: 2; /* ensure content sits above ::before/::after */
}

.hero-inner{
  position: relative;
  padding: 22px;
  height: 100%;
  display:flex;
}

.hero-content{
  width: 100%;
  height: 100%;
  display:grid;
  grid-template-rows: auto 1fr;
}

.hero-actions{
  align-self: end;
  padding-bottom: 10px;
}

.hero-cta{
  display:grid;
  gap: 12px;
  width: min(520px, 100%);
}

.hero-cta .btn{
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 16px;
}

.hero-top{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 10px;
}

h1{
  margin: 0 0 10px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.lead{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  line-height: 1.25;
  max-width: 44ch;
}

.trust{
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.5;
}

/* AFTER HERO */
.after-hero{
  margin-top: 16px;
  display:grid;
  gap: 12px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  overflow: visible; /* IMPORTANT so the audio play bubble can hang out */
}

.card h3{
  margin: 0;
  font-size: 30px;
  color: var(--navy);
}

.small{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hr{
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.pricebox{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 12px;
}
.pricebox strong{
  font-size: 44px;
  letter-spacing: -0.8px;
  color: var(--navy);
}
.pricebox span{
  color: var(--muted);
  font-size: 16px;
}

.list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

/* Plan header: title + logo inline */
.plan-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.plan-head-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(2,6,23,0.10));
}

/* Social proof */
.social-proof{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  overflow: hidden;
}

.proof-inner{
  padding: 18px;
  display: grid;
  gap: 14px;
}

.social-proof h2{
  margin: 0 0 6px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 22px;
  color: var(--navy);
}

.social-proof p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.proof-right{
  display: grid;
  gap: 10px;
}

.proof-stat{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.proof-stat strong{
  color: var(--navy);
  font-weight: 900;
}

.proof-stat span{
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{ margin-top: 18px; }

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 10px;
  margin: 0 0 10px;
}

.section-title h2{
  margin: 0;
  font-size: 20px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--navy);
}

.section-title p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display:grid;
  gap: 12px;
}

.library-year{
  margin: 14px 0 8px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* SAMPLE CARD TYPO */
.sample-card{ padding: 18px; }
.sample-title{
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.05;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
}
.sample-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* AUDIO UI (looks like your reference) */
.audio-native{ display:none; }

.audio-ui{
  display:grid;
  gap: 10px;
}

.audio-pill{
  position: relative;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: #eff1ff;
  box-shadow:
    0 18px 30px rgba(2,6,23,0.06),
    inset 0 1px 0 rgba(255,255,255,0.65);
  overflow: visible;
  padding: 0 22px 0 92px;
  display:flex;
  align-items:center;
  cursor: pointer;

  /* NEW: match your play bubble geometry */
  --play-left: 18px;     /* .audio-play left */
  --play-size: 78px;     /* .audio-play width/height */
  --progress-pad: 10px;  /* was your inset */
  --progress-gap: 10px;  /* extra spacing after the bubble */
}

.audio-progress{
  position:absolute;

  /* NEW: don't use inset anymore */
  top: var(--progress-pad);
  bottom: var(--progress-pad);
  right: var(--progress-pad);

  /* NEW: start AFTER the bubble */
  left: calc(var(--play-left) + var(--play-size) + var(--progress-gap));

  border-radius: 999px;
  overflow:hidden;
  pointer-events:none;
  background: rgba(255,255,255,0.50);
}

@media (max-width: 420px){
  .audio-pill{
    --play-left: 16px;
    --play-size: 70px;
  }
}

.audio-progress-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(10, 49, 97, 0.35),
    rgba(10, 49, 97, 0.70),
    rgba(179, 25, 66, 0.85)
  );
  will-change: width;
}

/* Big play bubble (left) */
.audio-play{
  position:absolute;
  left: 10px;
  top: 50%;
  transform: translate(-18%, -50%); /* makes it protrude outside like the reference */
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: linear-gradient(
    180deg,
    rgba(179, 25, 66, 0.95),  /* --red */
    rgba(10, 49, 97, 0.88)    /* --navy */
  );
  box-shadow:
    0 18px 34px rgba(10, 49, 97, 0.26),
    0 10px 22px rgba(179, 25, 66, 0.18);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}

/* Progress track should NOT run under the play bubble */
.audio-pill { position: relative; }

.audio-pill .audio-progress{
  position: absolute;

  /* override inset: 10px */
  inset: auto;

  top: 10px;
  bottom: 10px;
  right: 10px;

  /* start after the play button area */
  left: 75px;   /* tweak 104–120px if needed */

  border-radius: 999px;
  overflow: hidden;
  pointer-events: auto;
}

.audio-progress {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position:absolute;
  left: 92px;   /* start after play bubble */
  right: 18px;
  top: 10px;
  bottom: 10px;
}

/* Make sure layering is sane */
.audio-pill .audio-progress{ z-index: 0; }
.audio-pill .audio-wave{ position: relative; z-index: 1; }
.audio-pill .audio-play{ position: absolute; z-index: 2; }

.icon{
  display:inline-block;
  width: 0;
  height: 0;
}

.icon-play{
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent rgba(255,255,255,0.95);
  margin-left: 3px;
}

.icon-pause{
  width: 18px;
  height: 18px;
  position: relative;
}
.icon-pause::before,
.icon-pause::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 6px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
}
.icon-pause::before{ left: 0; }
.icon-pause::after{ right: 0; }

/* Waveform area fills remaining space */
.audio-wave{
  position: relative;
  z-index: 1;
  width: 100%;
  display:flex;
  justify-content: flex-end;
  align-items:center;
  gap: 8px;
  height: 44px;
  padding-right: 6px;
}

.audio-wave span{
  display:block;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background: rgba(10, 49, 97, 0.22);
  opacity: 0.95;
}

/* Pre-baked bar variance */
.audio-wave span:nth-child(2n){ height: 16px; }
.audio-wave span:nth-child(3n){ height: 22px; }
.audio-wave span:nth-child(4n){ height: 30px; }
.audio-wave span:nth-child(5n){ height: 18px; }
.audio-wave span:nth-child(7n){ height: 28px; }
.audio-wave span:nth-child(9n){ height: 20px; }
.audio-wave span:nth-child(11n){ height: 34px; }
.audio-wave span:nth-child(13n){ height: 24px; }

.audio-ui.is-playing .audio-wave span{
    background: rgba(10, 49, 97, 0.88);
  animation: wavePulse 900ms ease-in-out infinite;
}

.audio-ui.is-playing .audio-wave span:nth-child(2n){ animation-delay: 120ms; }
.audio-ui.is-playing .audio-wave span:nth-child(3n){ animation-delay: 220ms; }
.audio-ui.is-playing .audio-wave span:nth-child(5n){ animation-delay: 310ms; }

/* PLAYING STATE — works for index (.audio-ui) AND app (.audio-embed) */
:is(.audio-ui, .audio-embed).is-playing .audio-wave span{
  background: rgba(10, 49, 97, 0.88);
  animation: wavePulse 900ms ease-in-out infinite;
}

:is(.audio-ui, .audio-embed).is-playing .audio-wave span:nth-child(2n){ animation-delay: 120ms; }
:is(.audio-ui, .audio-embed).is-playing .audio-wave span:nth-child(3n){ animation-delay: 220ms; }
:is(.audio-ui, .audio-embed).is-playing .audio-wave span:nth-child(5n){ animation-delay: 310ms; }

@keyframes wavePulse{
  0%{ opacity: 0.70; }
  50%{ opacity: 1; }
  100%{ opacity: 0.70; }
}

/* Time row */
.audio-meta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.audio-time{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.2px;
  color: rgba(11,18,32,0.75);
}

.audio-sep{ opacity: 0.55; padding: 0 10px; }

.audio-text{
  margin-top: 14px;
  padding: 16px 16px 16px 16px;
  border-radius: 16px;

  /* 🇺🇸 brand background */
  background: linear-gradient(180deg, #0a3161 0%, #08284d 100%);
  border: 1px solid rgba(255,255,255,0.14);

  color: #fff;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;

  box-shadow:
    0 10px 24px rgba(10,49,97,0.20),
    inset 0 1px 0 rgba(255,255,255,0.08);

  position: relative;
}


.input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  outline: none;
}

.input:focus{
  border-color: rgba(10,49,97,0.35);
  box-shadow: 0 0 0 4px rgba(10,49,97,0.10);
}

.btn.outline{
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(16,68,108,.35);
}


/* =========================
   FOOTER (clean + minimal)
========================= */

.footer{
  margin: 22px 0 10px;
  padding: 18px 20px;

  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;

  box-shadow: 0 6px 18px rgba(2,6,23,0.06);

  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 20px;
  flex-wrap: wrap;

  font-size: 14px;
  color: var(--muted);
}

.footer-left{
  font-weight: 700;
  color: var(--navy);
}

/* links row */
.footer-links{
  display:flex;
  gap: 16px;
  font-weight: 800;
}

.footer-links a{
  color: var(--navy);
  text-decoration:none;
}

.footer-links a:hover{
  text-decoration:underline;
}

/* sentence text */
.footer-note{
  margin: 8px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

/* inline brand-style link */
.footer-link-alt{
  color: var(--red);
  font-weight: 800;
  text-decoration:none;
}

.footer-link-alt:hover{
  text-decoration: underline;
}

/* Desktop */
@media (min-width: 900px){
  .container{ padding: 20px; }

  .hero{ height: 550px; }

  .hero::after{
    background-image: url("/assets/desktop-hero.png");
  }

  .hero-inner{ padding: 34px; }

  .hero-cta{ grid-template-columns: 1fr 1fr; }

  h1{ font-size: 56px; }

  .after-hero{
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

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

  .proof-inner{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 420px){
  :root{ --heroY: 50%; }
  h1{ font-size: 38px; }
  .plan-head-logo{
      width: 120px;
      height: 120px;
      margin-top: -15px;
  }

  /* keep the play bubble from eating the whole pill on tiny screens */
  .audio-pill{ padding-left: 84px; width: 300px; }
  .audio-play{
    width: 70px;
    height: 70px;
    left: 16px;
    transform: translate(-16%, -50%);
  }
  .audio-time{ font-size: 20px; }
  .audio-text{ font-size: 16px; }
  
  .audio-wave { gap: 4px;}
  
}

/* FEATURES */

.features-grid{
  gap: 14px;
}

/* card becomes horizontal layout */
.feature-card{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  padding: 18px;
}

/* icon */
.feature-icon{
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;

  /* subtle brand tint */
  filter: drop-shadow(0 6px 14px rgba(10,49,97,0.15));
}

/* text wrapper */
.feature-text{
  display:flex;
  flex-direction: column;
  gap: 4px;
}

/* shrink h3 (this was WAY too big before) */
.feature-card h3{
  margin: 0;
  font-size: 18px;   /* ← much better */
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.2px;
}

/* body copy */
.feature-card p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon{
  width: 28px;
  height: 28px;
  stroke: var(--navy);
  stroke-width: 2.5;
  flex: 0 0 auto;
}
/* mobile stack */
@media (max-width: 600px){
  .feature-card{
    gap: 12px;
  }

  .feature-icon{
    width: 36px;
    height: 36px;
  }
}

/* =========================
   TESTIMONIALS (PNG cards)
========================= */
.testimonials-grid{
  gap: 16px;
}

.testimonial-card{
  margin: 0;               /* figure default margin = annoying */
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  overflow: hidden;        /* keeps rounded corners clean */
}

.testimonial-img{
  display: block;
  width: 100%;
  height: auto;
}

/* Optional: subtle hover lift */
@media (hover:hover){
  .testimonial-card{
    transition: transform 140ms ease, box-shadow 140ms ease;
  }
  .testimonial-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(2,6,23,0.10);
  }
}

/* Optional: on small screens, give more breathing room */
@media (max-width: 600px){
  .testimonials-grid{ gap: 12px; }
}


/* app page polish */
.app-grid {
  align-items: start;
}

.app-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.today-card {
  border: 2px solid rgba(255,255,255,0.08);
}

.app-card-title {
  margin-bottom: 14px;
}

.app-card-body {
  flex: 1;
}

/* mobile stack */
@media (max-width: 900px){
  .app-grid {
    grid-template-columns: 1fr;
  }
}

.app-prayer-title{
  font-weight:700;
  margin-bottom:12px;
}

.library-row{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.audio-embed { position: relative; z-index: 2; }

/* =========================
   APP: card headers
========================= */
.app-card-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.app-date{
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* =========================
   APP: Library rows
========================= */
.library-row{
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.08);
  background: #fff;

  cursor: pointer;
  text-align: left;
}

.library-row + .library-row{
  margin-top: 10px;
}

.library-row:hover{
  background: rgba(10,49,97,0.04);
  border-color: rgba(10,49,97,0.18);
}

.library-row.is-selected{
  background: rgba(10,49,97,0.08);
  border-color: rgba(10,49,97,0.28);
  box-shadow: 0 10px 18px rgba(2,6,23,0.06);
}

.library-title{
  font-weight: 900;
  color: var(--text);
  font-size: 14px;
}

.library-date{
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* “NEW” tag for today’s prayer */
.tag-new{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 6px 10px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.6px;

  background: rgba(179,25,66,0.12);
  color: var(--red);
  border: 1px solid rgba(179,25,66,0.28);
}

/* =========================
   NAV: Hamburger menu
========================= */
.menu{
  position: relative;
}

.menu-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.menu-btn:hover{ background: rgba(255,255,255,0.18); }

.menu-btn span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}
.menu-btn span::before{ top:-6px; }
.menu-btn span::after{ top:6px; }

.menu-panel{
  position:absolute;
  right:0;
  top: 54px;
  min-width: 220px;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(2,6,23,0.18);
  padding: 8px;
  display:none;
  z-index: 50;
}

.menu-panel.open{ display:block; }

.menu-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;

  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.menu-item:hover{
  background: rgba(10,49,97,0.06);
}

.menu-divider{
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

/* Make hamburger readable on white nav */
.nav .menu-btn{
  background: #fff;
  border: 1px solid var(--border);
}

.nav .menu-btn span,
.nav .menu-btn span::before,
.nav .menu-btn span::after{
  background: var(--navy);
}

/* menu item with right-side gif */
.menu-item-with-icon{
  justify-content: space-between;
}

/* tiny animated gif */
.menu-gif{
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* stack the heading + date (instead of inline) */
.app-card-head-stack{
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.app-card-title{
  margin: 0;
}

.app-date{
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}


/* =========================
   SUBSCRIPTION PAGE (pretty)
========================= */

.sub-page{
  display: grid;
  gap: 14px;
}

.sub-hero{
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

@media (min-width: 900px){
  .sub-hero{
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

.sub-hero-left{
  min-width: 0;
}

.sub-pill{
  background: rgba(10,49,97,0.70);
  border-color: rgba(255,255,255,0.22);
}

.sub-h1{
  margin: 10px 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--navy);
}

.sub-lead{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

.sub-mini{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 700px){
  .sub-mini{
    grid-template-columns: 1fr;
  }
}

.sub-mini-item{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px 12px;
  min-width: 0;
}

.sub-mini-kicker{
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.sub-mini-text{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sub-hero-right{
  min-width: 0;
}

.sub-feature{
  border-radius: 18px;
  border: 1px solid rgba(10,49,97,0.20);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(10,49,97,0.12), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, rgba(179,25,66,0.10), transparent 60%),
    #fff;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
}

.sub-feature-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.sub-plan-name{
  font-weight: 900;
  color: var(--navy);
  font-size: 18px;
}

.sub-price-big{
  margin: 10px 0 10px;
}

.sub-price-big strong{
  font-size: 44px;
  letter-spacing: -0.8px;
  color: var(--text);
}

.sub-fineprint{
  margin-top: 10px;
  background: rgba(10,49,97,0.06);
  border: 1px solid rgba(10,49,97,0.12);
  border-radius: 14px;
  padding: 10px 12px;
}

.sub-deal-head{
  padding: 0 4px;
}

.sub-h2{
  margin: 0 0 6px;
  font-size: 20px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--navy);
}

.sub-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .sub-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sub-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 22px rgba(2,6,23,0.06);
  padding: 16px;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.sub-card-gold{
  border-color: rgba(179,25,66,0.22);
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(179,25,66,0.10), transparent 60%),
    #fff;
}

.sub-card-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.sub-tier{
  font-weight: 900;
  color: var(--navy);
  font-size: 18px;
}

.sub-discount{
  color: var(--red);
  font-weight: 900;
}

.sub-price{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-price strong{
  font-size: 26px;
  letter-spacing: -0.4px;
  color: var(--text);
}

.sub-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.sub-note{
  padding: 16px;
}


/* =========================
   MOBILE OVERFLOW KILL SWITCH
========================= */

/* Prevent the page from horizontal scrolling if one element goes rogue */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make sure all sections/cards can shrink inside the viewport */
.container,
.card,
.sub-page,
.sub-hero,
.sub-feature,
.sub-grid,
.sub-card {
  max-width: 100%;
  min-width: 0;
}

/* Footer links are a common overflow culprit */
.footer-links {
  flex-wrap: wrap;
  row-gap: 10px;
}

/* Any long menu item/link should be allowed to wrap */
.menu-item {
  white-space: normal;
  word-break: break-word;
}

/* Plan price blocks can overflow if they get forced inline */
.sub-price,
.sub-price-big {
  min-width: 0;
  flex-wrap: wrap;
}

/* Buttons should never push layout wider than screen */
.btn {
  max-width: 100%;
}

/* =========================
   PRICING GRID (clean + matches Monthly card)
========================= */

.pricing-grid{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

@media (min-width: 900px){
  .pricing-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* =========================
   Deal cards (Bronze/Silver/Gold)
   Visual language = Monthly Membership card
========================= */

.plan-card{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(10,49,97,0.18);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(10,49,97,0.10), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, rgba(179,25,66,0.08), transparent 60%),
    #fff;
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  min-width: 0;
}

/* Top row: icon + title */
.plan-head{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(11,18,32,0.08);
}

/* Replace the weird aura/cross thing with a simple “seal” */

/* Head text */
.plan-tier{
  font-weight: 1000;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-top: 10px;
}

.plan-sub{
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.plan-discount{
  color: var(--red);
  font-weight: 900;
}

/* body */
.plan-body{
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-price-big{
  font-weight: 1000;
  font-size: 34px;
  letter-spacing: -0.6px;
  color: var(--text);
}

.plan-price-sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* list matches site */
.plan-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* your HTML uses <ul class="plan-list"><li>... */
.plan-list li{
  margin: 6px 0;
}

/* CTA spacing */
.plan-cta{
  margin-top: auto;
}

/* Best value badge (same vibe as tag-new) */
.plan-badge{
  position:absolute;
  top: 14px;
  right: 14px;
  z-index: 2;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 6px 10px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.6px;

  background: rgba(179,25,66,0.12);
  color: var(--red);
  border: 1px solid rgba(179,25,66,0.28);
}

/* Tier variants: subtle differences only */
.plan-bronze{
  border-color: rgba(179,25,66,0.16);
}

.plan-silver{
  border-color: rgba(10,49,97,0.18);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(10,49,97,0.10), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, rgba(2,6,23,0.06), transparent 60%),
    #fff;
}

.plan-gold{
  border-color: rgba(179,25,66,0.22);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(179,25,66,0.12), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, rgba(10,49,97,0.10), transparent 60%),
    #fff;
}

/* =========================
   PLAN ICON (PNG medal)
========================= */



.plan-icon img{
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-left: 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}



/* =========================
   PASSWORD VIEW TOGGLE
========================= */

.password-wrap {
  position: relative;
}

.password-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
}

.password-eye:hover {
  opacity: 1;
}

.password-eye svg {
  width: 18px;
  height: 18px;
  fill: #0b3675; /* your brand navy */
}

/* toggle visibility */
.eye-closed {
  display: none;
}

.password-eye.is-visible .eye-open {
  display: none;
}

.password-eye.is-visible .eye-closed {
  display: block;
}

/* Password field with eye toggle */
.pw-field{
  position: relative;
  max-width: 520px; /* optional - matches your forms */
}

.pw-field .input{
  padding-right: 52px; /* room for the icon button */
}

.pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  padding: 0;
}


.pw-toggle img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display:block;
}

.pw-requirements {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin: 2px 0px -7px 5px;
}



/* =========================
   Prayer Detail (left column)
========================= */

.prayer-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prayer-image-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.prayer-image {
  width: 100%;
  aspect-ratio: 4 / 5;    /* 1080x1350 */
  object-fit: cover;
  display: block;
}

.prayer-audio {
  width: 100%;
}

.prayer-transcript {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
  opacity: 0.92;
}

/* =========================
   Library thumbnails (right column)
========================= */

.library-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.library-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.08);
}

.library-thumb--empty {
  border: 1px dashed rgba(255,255,255,0.18);
}
