/* ==========================================================================
   Home page - hero slider, direct Photo Check card, enhanced module cards,
   free-limit/subscription panel, feature CTA panels, FAQ background.
   ========================================================================== */

/* ---- Hero: background slider + direct Body Fat % Checker ---- */
.home-hero { position: relative; isolation: isolate; color: #fff; min-height: 92vh; display: flex; align-items: center; padding-top: 7rem; padding-bottom: 3.5rem; overflow: hidden; }
.home-hero-media { position: absolute; inset: 0; z-index: -1; }
.home-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.home-hero-slide.is-active { opacity: 1; }
.home-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.home-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(11,28,46,0.94) 0%, rgba(11,28,46,0.82) 40%, rgba(11,28,46,0.55) 100%); z-index: 1; }
.home-hero .container { width: 100%; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }

.home-hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; backdrop-filter: blur(6px); }
.home-hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(24,192,252,0.7); animation: homePulse 1.8s infinite; }
@keyframes homePulse { 0% { box-shadow: 0 0 0 0 rgba(24,192,252,0.6); } 70% { box-shadow: 0 0 0 10px rgba(24,192,252,0); } 100% { box-shadow: 0 0 0 0 rgba(24,192,252,0); } }
.home-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin-top: 1.1rem; letter-spacing: -0.01em; }
.home-hero h1 em { font-style: normal; color: var(--amber); }
.home-hero p.lead { margin-top: 1rem; font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,0.88); max-width: 30rem; }
.home-hero-trust { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.65rem; }
.home-hero-trust div { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.home-hero-trust svg { width: 18px; height: 18px; color: var(--sky); flex-shrink: 0; }

.home-calc-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 70px -25px rgba(0,0,0,0.5); overflow: hidden; }
.home-calc-head { background: var(--navy); color: #fff; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.home-calc-head h3 { font-size: 1.05rem; }
.home-calc-head span { font-size: 0.78rem; color: var(--sky); font-weight: 700; }
.home-calc-body { padding: clamp(1.4rem, 3vw, 2rem); }
.home-calc-foot-link { display: block; text-align: center; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--teal); }

.pc-tagline { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.pc-subtext { margin-top: 0.4rem; font-size: 0.88rem; color: #4c6975; line-height: 1.55; }
.pc-mini-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pc-mini-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.pc-mini-list svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

.pc-mini-upload {
  margin-top: 1.4rem; text-align: center; padding: 1.6rem 1.2rem; border-radius: var(--radius-md);
  border: 2px dashed rgba(12,144,216,0.4); background: var(--mist);
}
.pc-mini-upload-icon { width: 46px; height: 46px; margin: 0 auto 0.7rem; border-radius: 50%; background: rgba(12,144,216,0.14); display: grid; place-items: center; color: var(--teal); }
.pc-mini-upload-icon svg { width: 22px; height: 22px; }
.pc-mini-upload h4 { font-size: 0.98rem; color: var(--navy); }
.pc-mini-upload p { margin-top: 0.3rem; font-size: 0.8rem; color: #7a97a3; }
.pc-mini-upload .btn { margin-top: 1rem; }

.pc-mini-preview { margin-top: 1.4rem; text-align: center; }
.pc-mini-preview img { max-height: 220px; margin-inline: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.pc-mini-preview .btn { margin-top: 1rem; }

/* ---- Four tools: enhanced module cards ---- */
.module-card-v2 {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.module-card-v2-media { position: relative; height: 160px; }
.module-card-v2-media img { width: 100%; height: 100%; object-fit: cover; }
.module-card-v2-icon {
  position: absolute; left: 1.1rem; bottom: -22px; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, var(--amber), var(--teal)); display: grid; place-items: center;
  color: var(--navy-deep); box-shadow: 0 10px 20px -8px rgba(11,28,46,0.4); border: 3px solid #fff;
}
.module-card-v2-icon svg { width: 24px; height: 24px; }
.module-card-v2-body { padding: 2rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.module-card-v2-body h3 { font-size: 1.15rem; color: var(--navy); }
.module-card-v2-body p { margin-top: 0.55rem; font-size: 0.9rem; color: #4c6975; line-height: 1.55; flex: 1; }
.module-card-v2-body .pill { margin-top: 1.1rem; }

/* ---- How it works / free-limit + subscription panel ---- */
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.limits-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.limits-card-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.limits-card-icon.blue { background: rgba(12,144,216,0.12); color: var(--teal); }
.limits-card-icon.amber { background: rgba(24,192,252,0.14); color: #075A87; }
.limits-card-icon svg { width: 26px; height: 26px; }
.limits-card h3 { font-size: 1.2rem; color: var(--navy); }
.limits-card p { margin-top: 0.6rem; font-size: 0.94rem; color: #4c6975; line-height: 1.6; }
.limits-card .price-tag { display: inline-block; margin-top: 0.9rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.limits-card .price-tag span { font-size: 0.85rem; font-weight: 600; color: #7a97a3; }
.limits-note { margin-top: 1.5rem; text-align: center; font-size: 0.86rem; color: #7a97a3; }

/* ---- Feature CTA panels: Calorie / Exercise Finder / Workout Diary ---- */
.feature-panel { position: relative; isolation: isolate; padding-block: clamp(4.5rem, 9vw, 7rem); overflow: hidden; color: #fff; }
.feature-panel-media { position: absolute; inset: 0; z-index: -1; }
.feature-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,28,46,0.92) 15%, rgba(11,28,46,0.55) 55%, rgba(11,28,46,0.25) 100%); }
.feature-panel.align-right .feature-panel-media::after { background: linear-gradient(260deg, rgba(11,28,46,0.92) 15%, rgba(11,28,46,0.55) 55%, rgba(11,28,46,0.25) 100%); }
.feature-panel-content { max-width: 30rem; }
.feature-panel.align-right .feature-panel-content { margin-left: auto; text-align: right; }
.feature-panel-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.feature-panel h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0.75rem; }
.feature-panel p { margin-top: 1rem; font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,0.88); }
.feature-panel .btn { margin-top: 1.75rem; }

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .limits-grid { grid-template-columns: 1fr; }
  .feature-panel.align-right .feature-panel-content { margin-left: 0; text-align: left; }
  .feature-panel.align-right .home-hero-trust, .feature-panel.align-right .home-hero-trust div { justify-content: flex-start; }
}
