/* ==========================================================
   Masjid Media — editorial warm-dark
   Peran warna: ink (permukaan) · bone (teks) · brass (aksen tunggal)
   Font: Fraunces (serif, suara & judul) · Outfit (sans, UI & isi)
   Datar: tanpa bayangan, kedalaman dari garis tipis 0.6px
   ========================================================== */
:root,
[data-theme="dark"] {
  --ink: #0E1318;
  --ink-soft: #14191F;
  --ink-raised: #1A2026;
  --ink-line: #252C33;
  --bone: #EFE6D4;
  --bone-soft: #D9CFB9;
  --bone-dim: #B7AC93;
  --muted: #8B8A82;
  --muted-deep: #5A5A55;
  --brass: #C9A864;
  --brass-deep: #A5894F;
  --brass-soft: #E1C68E;
  --accent-text: #C9A864;
  /* brass untuk teks/link */
  --sage: #3F564E;
  --sage-soft: #6D8A7E;
  --success: #8FA876;
  --danger: #D9876B;
  --danger-deep: #B8624A;
  --btn-bg: #EFE6D4;
  --btn-fg: #0E1318;
}

[data-theme="light"] {
  --ink: #FAF6EE;
  --ink-soft: #F2ECD8;
  --ink-raised: #E8DFC8;
  --ink-line: #D5CBAD;
  --bone: #1A1F25;
  --bone-soft: #383E47;
  --bone-dim: #5E646E;
  --muted: #7A7A72;
  --muted-deep: #AFAEA7;
  --accent-text: #A5894F;
  /* brass lebih pekat agar terbaca di krem */
  --btn-bg: #1A1F25;
  --btn-fg: #FAF6EE;
}

:root {
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hair: .6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--bone-soft);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.mm-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
}

/* Eyebrow: label kapital, tracking lebar */
.mm-eyebrow,
.mm-nav a,
.mm-lang a,
.mm-plan .flag,
.mm-agenda small,
.mm-footer h4,
.mm-tv-body small,
.mm-sample {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 500;
}

.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--accent-text);
  margin-bottom: 22px;
}

.mm-eyebrow::before {
  content: "";
  width: 32px;
  border-top: var(--hair) solid var(--brass);
}

/* Header */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--hair) solid var(--ink-line);
}

.mm-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 10px 0;
}

.mm-brand,
.mm-lang,
.mm-themebtn {
  flex-shrink: 0;
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: var(--serif);
  /* Fraunces */
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-variation-settings: normal;
  /* sumbu opsz otomatis */
  font-variant-ligatures: normal;
  font-variant-numeric: normal;
  font-variant-caps: normal;
  font-synthesis-weight: auto;
  font-synthesis-style: auto;
  font-size-adjust: none;

  color: var(--bone);
  color-scheme: normal;
  color-interpolation: srgb;
  color-rendering: auto;
  transition: color .2s ease;
}

.mm-brand:hover {
  color: var(--accent-text);
}

.mm-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mm-nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-right: auto;
}

.mm-nav a {
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-size-adjust: none;
  font-variation-settings: normal;
  font-synthesis-small-caps: auto;
  font-synthesis-style: auto;
  font-synthesis-weight: auto;
  font-variant-alternates: normal;
  font-variant-caps: normal;
  font-variant-east-asian: normal;
  font-variant-emoji: normal;
  font-variant-ligatures: normal;
  font-variant-numeric: normal;
  font-variant-position: normal;

  color: var(--bone-soft);
  color-interpolation: srgb;
  color-interpolation-filters: linearrgb;
  color-rendering: auto;
  color-scheme: normal;

  letter-spacing: .2em;
  transition: color .2s;
}

.mm-nav a:hover,
.mm-nav a.active {
  color: var(--accent-text);
}

.mm-nav a {
  display: block;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  color: var(--bone);
  transition: color .2s, background-color .2s;
}

.mm-nav a:hover {
  color: var(--accent-text);
}

.mm-nav a.active {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.mm-lang {
  display: flex;
  gap: 4px;
}

.mm-lang a {
  padding: 4px 10px;
  border: var(--hair) solid transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

.mm-lang a.on {
  border-color: var(--brass);
  color: var(--accent-text);
}

.mm-themebtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--hair) solid var(--ink-line);
  background: transparent;
  color: var(--bone-dim);
  cursor: pointer;
  font-size: 15px;
}

.mm-themebtn:hover {
  border-color: var(--brass);
  color: var(--accent-text);
}

.mm-themebtn .to-light {
  display: inline;
}

.mm-themebtn .to-dark {
  display: none;
}

[data-theme="light"] .mm-themebtn .to-light {
  display: none;
}

[data-theme="light"] .mm-themebtn .to-dark {
  display: inline;
}

.mm-burger {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--bone);
}

/* Tombol: pil, label serif miring */
.mm-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  border: var(--hair) solid var(--btn-bg);
  transition: background .2s, color .2s, border-color .2s;
}

.mm-btn.primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.mm-btn.primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.mm-btn.ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--ink-line);
}

.mm-btn.ghost:hover {
  border-color: var(--brass);
  color: var(--accent-text);
}

/* Lead & umum */
.mm-lead {
  font-size: 19px;
  color: var(--bone-dim);
  max-width: 620px;
  margin: 0;
}

.mm-section {
  padding: 104px 0;
  border-top: var(--hair) solid var(--ink-line);
}

.mm-section.alt {
  background: var(--ink-soft);
}

.mm-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.mm-head h2,
.mm-split h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.mm-more {
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

.mm-more a:hover {
  color: var(--brass-soft);
}

.mm-sample {
  margin: 18px 0 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--muted-deep);
}

/* Hero */
.mm-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}

.mm-hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -140px;
  width: 980px;
  height: 980px;
  background: url("../images/octagram.svg") center / contain no-repeat;
  pointer-events: none;
}

.mm-hero>.mm-wrap {
  position: relative;
}

.mm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.mm-hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 26px;
}

.mm-hero h1 em {
  font-style: italic;
  color: var(--accent-text);
  font-weight: 300;
}

.mm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mm-soon {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-soon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}

/* Mockup TV */
.mm-tv-screen {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  border: var(--hair) solid var(--ink-line);
  background: #0E1318;
  color: #EFE6D4;
  display: flex;
  flex-direction: column;
  outline: 6px solid #14191F;
}

.mm-tv-star {
  position: absolute;
  right: -40px;
  top: 50%;
  width: 62%;
  transform: translateY(-50%);
  opacity: .10;
}

.mm-tv-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-family: var(--serif);
  font-size: 14px;
  border-bottom: var(--hair) solid #252C33;
  color: #D9CFB9;
}

.mm-tv-top b {
  font-family: var(--sans);
  font-weight: 400;
  color: #C9A864;
  letter-spacing: .1em;
}

.mm-tv-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 26px;
}

.mm-tv-body small {
  font-size: 10.5px;
  letter-spacing: .26em;
  color: #C9A864;
}

.mm-tv-clock {
  font-family: var(--serif);
  font-size: clamp(38px, 6.4vw, 70px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.mm-tv-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #EFE6D4;
}

.mm-tv-ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  border-top: var(--hair) solid #C9A864;
  color: #D9CFB9;
  font-size: 13px;
  font-weight: 300;
}

.mm-tv-ticker .track {
  display: inline-block;
  animation: mm-scroll 32s linear infinite;
}

.mm-tv-ticker span {
  margin: 0 30px;
}

.mm-tv-ticker span::before {
  content: "✦";
  color: #C9A864;
  margin-right: 12px;
}

@keyframes mm-scroll {
  to {
    transform: translateX(-50%);
  }
}

.mm-tv-stand {
  width: 28%;
  height: 8px;
  margin: 6px auto 0;
  background: var(--ink-raised);
}

/* Langkah */
.mm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--hair) solid var(--ink-line);
  border-left: var(--hair) solid var(--ink-line);
}

.mm-step {
  padding: 36px 32px 40px;
  border-right: var(--hair) solid var(--ink-line);
  border-bottom: var(--hair) solid var(--ink-line);
}

.mm-step .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 28px;
}

.mm-step h3 {
  font-size: 25px;
  margin-bottom: 10px;
}

.mm-step p {
  margin: 0;
  color: var(--bone-dim);
}

/* Jamaah */
.mm-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mm-feats {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.mm-feats li {
  padding: 22px 0;
  border-top: var(--hair) solid var(--ink-line);
}

.mm-feats li:last-child {
  border-bottom: var(--hair) solid var(--ink-line);
}

.mm-feats h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.mm-feats p {
  margin: 0;
  color: var(--bone-dim);
}

.mm-phone {
  max-width: 330px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 34px;
  border: var(--hair) solid var(--ink-line);
  background: #0E1318;
}

.mm-phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 16px 14px;
  border-bottom: var(--hair) solid #252C33;
}

.mm-phone-bar b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: #EFE6D4;
  letter-spacing: -.02em;
}

.mm-phone-bar span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #D9CFB9;
}

.mm-agenda {
  padding: 16px;
  border-bottom: var(--hair) solid #252C33;
  color: #D9CFB9;
}

.mm-agenda:last-child {
  border-bottom: 0;
}

.mm-agenda small {
  display: block;
  font-size: 10px;
  letter-spacing: .24em;
  color: #8B8A82;
  margin-bottom: 4px;
}

.mm-agenda strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: #EFE6D4;
  letter-spacing: -.01em;
}

.mm-agenda span {
  font-size: 13px;
  color: #B7AC93;
}

.mm-agenda.next {
  background: #14191F;
  box-shadow: inset 2px 0 0 #C9A864;
}

.mm-agenda.next small {
  color: #C9A864;
}

/* Paket */
.mm-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.mm-plan {
  position: relative;
  padding: 38px 32px;
  background: var(--ink-soft);
  border: var(--hair) solid var(--ink-line);
  border-radius: 2px;
}

.mm-section:not(.alt) .mm-plan {
  background: var(--ink-soft);
}

.mm-plan.featured {
  border-color: var(--brass);
  background: var(--ink-raised);
}

.mm-plan .flag {
  position: absolute;
  top: -10px;
  left: 28px;
  padding: 3px 12px;
  font-size: 10px;
  letter-spacing: .2em;
  background: var(--ink);
  color: var(--accent-text);
  border: var(--hair) solid var(--brass);
  border-radius: 999px;
}

.mm-plan h3 {
  font-size: 28px;
}

.mm-plan .desc {
  margin: 8px 0 22px;
  font-size: 15px;
  color: var(--bone-dim);
}

.mm-plan .price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: -.03em;
  color: var(--bone);
  line-height: 1;
  margin: 0 0 26px;
}

.mm-plan .price small {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}

.mm-plan ul {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: var(--hair) solid var(--ink-line);
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.mm-plan li {
  position: relative;
  padding-left: 26px;
}

.mm-plan li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--accent-text);
}

/* Halaman dalam */
.mm-pagehead {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.mm-pagehead::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -260px;
  width: 700px;
  height: 700px;
  background: url("../images/octagram.svg") center / contain no-repeat;
  pointer-events: none;
}

.mm-pagehead .mm-wrap {
  position: relative;
}

.mm-pagehead h1 {
  font-size: 42px;
  letter-spacing: -.035em;
  margin: 0;
}

.mm-pagehead .mm-lead {
  margin-top: 12px;
  margin-bottom: 0;
}

.mm-prose {
  max-width: 800px;
  padding-top: 40px;
  padding-bottom: 96px;
  font-size: 18px;
}

.mm-prose h1 {
  font-size: 42px;
  margin: 0 0 .5em;
}

.mm-prose h2 {
  font-size: 34px;
  margin: 2em 0 .5em;
}

.mm-prose h3 {
  font-size: 25px;
  margin: 1.8em 0 .4em;
}

.mm-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: .6px;
}

.mm-prose strong {
  color: var(--bone);
  font-weight: 500;
}

.mm-prose img {
  border-radius: 2px;
  border: var(--hair) solid var(--ink-line);
}

.mm-prose hr {
  border: 0;
  border-top: var(--hair) solid var(--ink-line);
  margin: 2.4em 0;
}

.mm-prose blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 24px;
  border-left: var(--hair) solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--bone);
}

.mm-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.mm-prose th,
.mm-prose td {
  border: var(--hair) solid var(--ink-line);
  padding: 10px 14px;
  text-align: left;
}

.mm-prose th {
  font-weight: 500;
  color: var(--bone);
  background: var(--ink-soft);
}

.mm-prose code {
  background: var(--ink-raised);
  color: var(--brass-soft);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: .88em;
}

[data-theme="light"] .mm-prose code {
  color: var(--brass-deep);
}

.mm-prose pre {
  background: var(--ink-soft);
  border: var(--hair) solid var(--ink-line);
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 4px;
}

.mm-prose pre code {
  background: none;
  padding: 0;
}

/* Footer */
.mm-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  border-top: var(--hair) solid var(--ink-line);
  padding: 40px 0 20px;
}

.mm-footer::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -200px;
  width: 640px;
  height: 640px;
  background: url("../images/octagram.svg") center / contain no-repeat;
  pointer-events: none;
}

.mm-footer .mm-wrap {
  position: relative;
}

.mm-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 48px;
  flex-wrap: wrap;
}

.mm-footer-brand {
  flex: 0 1 320px;
}

.mm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-left: auto;
}

.mm-footer-col {
  min-width: 120px;
}

.mm-footer-brand p {
  max-width: 320px;
  font-size: 15px;
  color: var(--bone-dim);
  margin: 16px 0 0;
}

.mm-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.mm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mm-footer a {
  color: var(--bone-dim);
  font-size: 15px;
}

.mm-footer a:hover {
  color: var(--accent-text);
}

.mm-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: var(--hair) solid var(--ink-line);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
}

:root,
[data-theme="dark"] {
  --nav-active-bg: #C9A864;
  --nav-active-fg: #0E1318;
}

[data-theme="light"] {
  --nav-active-bg: #D6B97A;
  --nav-active-fg: #1A1F25;
}

.mm-nav a {
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

@media (min-width: 901px) {

  .mm-nav a.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-fg);
  }

  .mm-nav a:not(.active):hover,
  .mm-nav a:not(.active):focus-visible {
    color: var(--accent-text);
    outline: none;
  }
}

/* Responsif */
@media (max-width: 900px) {

  .mm-hero-grid,
  .mm-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mm-steps,
  .mm-plans {
    grid-template-columns: 1fr;
  }

  .mm-footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .mm-footer-brand {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .mm-footer-nav {
    margin-left: 0;
    width: 100%;
    gap: 24px 32px;
  }

  .mm-header-inner {
    gap: 14px;
  }

  .mm-burger {
    display: block;
  }

  .mm-themebtn {
    margin-left: auto;
  }

  .mm-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: var(--hair) solid var(--ink-line);
    padding: 8px 28px 18px;
    margin: 0;
  }

  .mm-nav.open {
    display: flex;
  }

  .mm-nav a {
    max-width: 100%;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: var(--hair) solid var(--ink-line);
  }

  .mm-section {
    padding: 72px 0;
  }

  .mm-hero {
    padding: 64px 0 72px;
  }

  .mm-nav a.active {
    background: transparent;
    color: var(--accent-text);
  }

  .mm-nav a:not(.active):hover,
  .mm-nav a:not(.active):focus-visible {
    color: var(--accent-text);
    outline: none;
  }

}

/* Sticky footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body>.mm-wrap,
body>main {
  width: 100%;
}

.mm-footer {
  margin-top: auto;
}