/* ═══════════════════════════════════════════════════════════
   Landing Page — MOM-NutriCare / SiPMT
   ═══════════════════════════════════════════════════════════ */

body.landing-page {
  background: #DFF2E6;
  color: #1A3D4F;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

[id="beranda"],
[id="edukasi"],
[id="artikel-edukasi"],
[id="fitur"],
[id="testimoni"],
[id="tim"] {
  scroll-margin-top: 56px;
}

.landing-container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

/* ── Navbar ── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #9FD4AE;
}

.landing-nav-inner {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.landing-nav-brand .sipmt-logo-login {
  max-height: 36px;
  width: auto;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #4A6670;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-nav-links a:hover {
  color: #2D9440;
}

.landing-nav-links a.is-active {
  color: #2D9440;
  font-weight: 600;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #1A3D4F;
  cursor: pointer;
  padding: 4px;
}

/* ── Buttons ── */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.landing-btn--primary {
  background: linear-gradient(135deg, #39B54A, #2D9440);
  color: #fff;
}

.landing-btn--primary:hover {
  background: linear-gradient(135deg, #66CC75, #39B54A);
  color: #fff;
}

.landing-btn--ghost {
  background: transparent;
  color: #2D9440;
  border-color: #9FD4AE;
}

.landing-btn--ghost:hover {
  background: #E8F8EB;
}

.landing-btn--outline {
  background: #fff;
  color: #2D9440;
  border-color: #9FD4AE;
}

.landing-btn--outline:hover {
  background: #E8F8EB;
}

.landing-btn--lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  padding: 48px 0 72px;
  min-height: 460px;
  background-color: #E8F8EB;
  background-image:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 34%,
      rgba(255, 255, 255, 0.5) 52%,
      rgba(255, 255, 255, 0.08) 70%,
      transparent 85%
    ),
    url('/hero.png');
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
}

.landing-hero .landing-container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.landing-hero-copy {
  text-align: left;
  max-width: 500px;
}

.landing-hero-copy h1 {
  margin-top: 0;
}

.landing-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #4A6670;
  max-width: 460px;
  margin-bottom: 24px;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1A3D4F;
  margin-bottom: 8px;
}

.landing-lead {
  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: 600;
  color: #2D9440;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ── Sections ── */
.landing-section {
  padding: 64px 0;
}

.landing-section--alt {
  background: #fff;
  border-block: 1px solid #C5E6CE;
}

.landing-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.landing-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #39B54A;
  margin-bottom: 8px;
}

.landing-section-head h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: #1A3D4F;
  margin-bottom: 10px;
}

.landing-section-head p {
  font-size: 15px;
  color: #4A6670;
  line-height: 1.6;
}

/* ── Tentang cards ── */
.landing-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-about-card {
  background: #F4FAF6;
  border: 1px solid #C5E6CE;
  border-radius: 14px;
  padding: 24px 20px;
}

.landing-about-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #E8F8EB;
  color: #2D9440;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.landing-about-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1A3D4F;
  margin-bottom: 10px;
}

.landing-about-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #4A6670;
}

/* ── Fitur ── */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.landing-feature-card {
  background: #fff;
  border: 1px solid #C5E6CE;
  border-radius: 12px;
  padding: 20px 16px;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.landing-feature-icon--green { background: #E8F8EB; color: #2D9440; }
.landing-feature-icon--blue { background: #E8F4FC; color: #0071BC; }
.landing-feature-icon--orange { background: #FFF3E8; color: #F58220; }

.landing-feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1A3D4F;
  margin-bottom: 8px;
}

.landing-feature-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #4A6670;
}

/* ── Edukasi preview ── */
.landing-edu-block {
  background: linear-gradient(135deg, #E8F8EB, #E8F4FC);
  border: 1px solid #9FD4AE;
  border-radius: 16px;
  padding: 28px 24px;
}

.landing-edu-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A3D4F;
  margin-bottom: 6px;
}

.landing-edu-desc {
  font-size: 14px;
  color: #4A6670;
  margin-bottom: 20px;
}

.landing-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-edu-card {
  background: #fff;
  border: 1px solid #C5E6CE;
  border-radius: 10px;
  padding: 16px;
}

.landing-edu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E8F4FC;
  color: #0071BC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.landing-edu-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1A3D4F;
  margin-bottom: 6px;
}

.landing-edu-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #4A6670;
}

/* ── Tim ── */
.landing-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.landing-team-card {
  text-align: center;
  background: #F4FAF6;
  border: 1px solid #C5E6CE;
  border-radius: 16px;
  padding: 28px 20px;
}

.landing-team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #39B54A;
  margin: 0 auto 16px;
  display: block;
}

.landing-team-card h3 {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #1A3D4F;
}

/* ── Footer ── */
.landing-footer {
  background: #1A3D4F;
  color: #C5E6CE;
  padding: 36px 0 28px;
}

.landing-footer-inner {
  text-align: center;
}

.landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.landing-footer-brand strong {
  font-size: 16px;
  color: #fff;
}

.landing-footer-brand span {
  font-size: 13px;
  color: #9FD4AE;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.landing-footer-links a {
  font-size: 13px;
  color: #C5E6CE;
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: #fff;
}

.landing-footer-copy {
  font-size: 12px;
  color: #7A9BA8;
}

/* ── Video edukasi ── */
.landing-video-wrap {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 61, 79, 0.12);
  background: #000;
}

.landing-video-sample-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-video-sample-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.landing-video-wrap--article {
  margin: 24px 0;
}

.landing-video {
  display: block;
  width: 100%;
  max-height: 460px;
  background: #000;
}

.landing-video-more {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.landing-video-more a {
  color: #2D9440;
  font-weight: 600;
  text-decoration: none;
}

.landing-video-more a:hover {
  text-decoration: underline;
}

/* ── Tentang Kami / artikel ── */
.landing-hero-sub {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #fff 0%, #DFF2E6 100%);
}

.landing-section-head--left {
  text-align: left;
}

.landing-container--narrow {
  width: min(760px, 100% - 32px);
}

.landing-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-article-card {
  background: #fff;
  border: 1px solid #C5E6CE;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing-article-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E8F5EC;
}

.landing-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-article-media--video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2D9440;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.landing-article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.landing-article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2D9440;
  margin-bottom: 8px;
}

.landing-article-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.landing-article-card h3 a {
  color: #1A3D4F;
  text-decoration: none;
}

.landing-article-card h3 a:hover {
  color: #2D9440;
}

.landing-article-card p {
  font-size: 13px;
  color: #4A6670;
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.landing-article-link {
  font-size: 13px;
  font-weight: 600;
  color: #2D9440;
  text-decoration: none;
}

.landing-article-link:hover {
  text-decoration: underline;
}

.landing-empty {
  text-align: center;
  color: #4A6670;
  padding: 32px 0;
}

.landing-back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #2D9440;
  text-decoration: none;
  font-weight: 500;
}

.landing-back-link:hover {
  text-decoration: underline;
}

.landing-article-title {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.landing-article-lead {
  font-size: 16px;
  color: #4A6670;
  margin-bottom: 8px;
}

.landing-article-figure img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.landing-article-content {
  font-size: 15px;
  line-height: 1.75;
  color: #1A3D4F;
  margin-top: 20px;
}

.landing-article-detail {
  padding-top: 32px;
  padding-bottom: 48px;
}

.landing-video-unavailable {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
  font-size: 14px;
  line-height: 1.5;
}

.landing-video-unavailable a {
  color: #2D9440;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.landing-video-unavailable a:hover {
  text-decoration: underline;
}

/* ── Login back link ── */
.auth-back-home {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.auth-back-home a {
  color: #2D9440;
  text-decoration: none;
  font-weight: 500;
}

.auth-back-home a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-about-grid,
  .landing-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-nav-toggle {
    display: flex;
  }

  .landing-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #9FD4AE;
    padding: 16px;
    gap: 12px;
  }

  .landing-nav-links.is-open {
    display: flex;
  }

  .landing-nav {
    position: relative;
  }

  .landing-nav-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .landing-nav-actions .landing-btn--ghost {
    display: none;
  }

  .landing-features-grid,
  .landing-edu-grid,
  .landing-team-grid,
  .landing-articles-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 36px 0 52px;
    min-height: 400px;
    background-position: center top;
  }

  .landing-hero-copy {
    max-width: 100%;
  }

  .landing-desc {
    max-width: none;
  }

  .landing-hero-cta {
    flex-direction: column;
  }

  .landing-hero-cta .landing-btn {
    width: 100%;
  }
}

/* ── Testimoni ── */
.landing-testimonial-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.landing-testimonial-score {
  text-align: center;
  padding: 20px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 61, 79, 0.08);
}

.landing-testimonial-score-value {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #005A96;
  line-height: 1;
  margin-bottom: 8px;
}

.landing-testimonial-score-meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #7A9BA8;
}

.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.landing-testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(26, 61, 79, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-testimonial-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #39B54A, #0071BC);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.landing-testimonial-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.landing-testimonial-quote {
  font-size: 14px;
  line-height: 1.65;
  color: #4A6670;
  margin: 0;
  flex: 1;
}

.landing-testimonial-date {
  font-size: 12px;
  color: #7A9BA8;
}

.star-rating {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.star-rating-star {
  color: #C5E6CE;
  font-size: inherit;
}

.star-rating-star.is-filled {
  color: #F5A623;
}

.star-rating-input-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating-input-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-input-stars label {
  cursor: pointer;
  font-size: 32px;
  color: #C5E6CE;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.star-rating-input-stars label:hover,
.star-rating-input-stars label:hover ~ label,
.star-rating-input-stars input:checked ~ label {
  color: #F5A623;
}

.star-rating-input-stars label:hover {
  transform: scale(1.08);
}

.star-rating-input-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted, #7A9BA8);
}
